package com.dxd.db.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.context.request.NativeWebRequest;

import java.util.Optional;

/**
 * A delegate to be called by the {@link UserApiController}}.
 * Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2022-02-24T12:25:57.304+08:00[Asia/Shanghai]")
public interface UserApiDelegate {

    default Optional<NativeWebRequest> getRequest() {
        return Optional.empty();
    }

    /**
     * GET /user : 条件查询用户
     * 条件查询：分页查询、按条件检索
     *
     * @param pageSize 当前页大小，默认为15 (required)
     * @param pageNumber 页码，默认第一页 (optional, default to 1)
     * @return 查询成功 (status code 200)
     * @see UserApi#queryUser
     */
    default ResponseEntity<Void> queryUser(Integer pageSize,
        Integer pageNumber) {
        return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);

    }

}
